<?php
namespace Mp\Service\Widget;
use Illuminate\Contracts\Support\Renderable;

class Button extends Input{

	protected $label = 'button';

	protected $size = 'md'; //xlg lg md sm mini

	protected $type = 'inverse'; //raised flat inverse link badges 

	protected $status = 'normal'; //normal active disable

	protected $group = false;

	protected $icon = '';  //home  search-alt-2 bubble-right bubble-left refresh navigation-menu mobile-phone code-alt server

	protected $view = 'Mp::widgets.button'; 

	protected function _init($params){
		$this->label = $params['label'] ?? $this->label;
		$this->size = $params['size'] ?? $this->size;
		$this->type = $params['type'] ?? $this->type;
		$this->status = $params['status'] ?? $this->status;
		$this->group = $params['group'] ?? $this->group;
		$this->icon = $params['icon'] ?? $this->icon;

		$this->data = [
			'label' => $this->label,
			'size' => $this->size,
			'type' => $this->type,
			'status' => $this->status,
			'group' => $this->group,
			'icon' => $this->icon,
		];
	}

	

	
}